﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ReconSite.Master" AutoEventWireup="true"
    CodeBehind="FileUpload.aspx.cs" Inherits="ReconUI.FileUpload" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleHolder" runat="server">
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="BodyHolder" runat="server">
    <div class="formDiv" id="fileUploadDiv">
    <h2 class="formTitle">Upload Invoice/Statement File</h2>
    <h1 class="formError" style="text-align:right;font-size:smaller;color:#CC2900;">Fields marked with * are mandatory</h1>
	<%--<span id="mandatoryMessage" class="formError">Fields marked with * are mandatory</span>--%>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
       
        <tr>
            <td align="right" colspan="2">
                File Type<span class="required">*</span>&nbsp;
            </td>
            <td align="left" colspan="1">
                <asp:DropDownList ID="ddlFileType" runat="server" Width="150px" AutoPostBack="false">
                    <asp:ListItem Value="0">Select File Type</asp:ListItem>
                    <asp:ListItem Value="I">Invoice File</asp:ListItem>
                    <asp:ListItem Value="S">Statement File</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="reqFileType" runat="server" ErrorMessage="Please Select File Type." CssClass="formError"
                    ControlToValidate="ddlFileType" Display="Dynamic" SetFocusOnError="True" InitialValue="0">
                </asp:RequiredFieldValidator>
            </td>
        </tr>
      <%--  <tr>
            <td align="right" colspan="2">
                Is Dealer Code Available in File?&nbsp;
            </td>
            <td align="left" colspan="1">
                <asp:RadioButtonList ID="rbIsDealerCode" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="Y" Selected="True">Yes</asp:ListItem>
                    <asp:ListItem Value="N">No</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>--%>
        <tr>
        <td align="right" colspan="2">
            File Format
        </td>
        <td align="left" colspan="1">
                    <asp:RadioButtonList ID="rbFileType" runat="server" 
                        RepeatDirection="Horizontal" Enabled = "false" RepeatLayout="Flow" >
                    <asp:ListItem Value="1" Selected="True">Comma Seprated</asp:ListItem>
                    <asp:ListItem Value="2">Fixed Width</asp:ListItem>
                    <asp:ListItem Value="3">Pipe Seprated</asp:ListItem>
                    </asp:RadioButtonList> 
        </td>
        </tr>
        <tr>
            <td align="right" colspan="2">
                Select File<span class="required">*</span>
            </td>
            <td align="left" colspan="2">
                &nbsp;<asp:FileUpload ID="fuInvoiceState" runat="server" BorderWidth="1px" />
                
                <asp:Button ID="btnUpload" runat="server" Text="Upload" 
                    onclick="btnUpload_Click">
                </asp:Button>
            </td>
        </tr>
        <tr>
            <td colspan="3">
            </td>
        </tr>
    </table>

    <asp:UpdatePanel ID="upUnmatchedLists" runat="server" UpdateMode="Conditional">
        <ContentTemplate>    
                <div id="pnlMatchList" runat="server" class="pnlMatchList">    
                    <span style="azimuth: center;">
                        <div id="Div1" class="formDiv" runat ="server"  >
                            <center>
                                <asp:Label ID="lblMessage" runat="server"    CssClass="lable"/>
                            </center>
                        </div>
                    </span>
                    <div class="formDiv" style="width: 30%;">
                         <center>
                            <asp:Button ID="btnok" runat="server" Text="OK" onclick="btnok_Click" CausesValidation="False"  />
                          </center>
                    </div>
                </div>
            <div style="display: none">
                <asp:Button ID="btnManualPopup" runat="server" />
            </div>
            <ajax:ModalPopupExtender ID="btnClickPopup" runat="server" PopupControlID="pnlMatchList"
                TargetControlID="btnManualPopup" BackgroundCssClass="modalBackground" RepositionMode="RepositionOnWindowScroll" OkControlID = "btnok">
            </ajax:ModalPopupExtender>   
        </ContentTemplate>        
    </asp:UpdatePanel>

    </div>
</asp:Content>
